#pragma once

#pragma warning(disable: 4995)		// don't warn about deprecated functions
#pragma warning(disable: 4996)		// don't warn about deprecated functions
#define _CRT_SECURE_NO_DEPRECATE	// ditto

#define MENUOPNUM 5
#define MENUTEXTA 4
#define MENUTEXTB 3
#define MENUTEXTC 1
#define MENUTEXTD 1
#define MENUTEXTE 1

#ifdef _DEBUG
#define USE_CONSOLE
#define DEBUGMODE
#endif

#include <allegro.h>
#include <winalleg.h>

#include "pmask.h"
#include <stdio.h>
#include <stdlib.h>

#include "GraphicPackA.h"
#include "unifont.h"

#include <string.h>
#include <fstream>
#include <iostream>

using namespace std;

extern char defaultmsg[100][256];
extern char menutext[50][256];
extern int messages;

//Color Var
extern int C_MainFolder, C_MainFolderShadow;
extern int C_ScrollBar , C_ScrollBarSmall, C_ScrollBarButton, C_ScrollBarButtonHit;
extern int C_SetsumeiText;
extern int C_TextBox;

//=====================================================================================//
//preproc Function Definitions
void startproc(char * program, char * direc);
void circleline(BITMAP *B_Buffer,int x,int y,int d);
void videoplayer(char *name,DATAFILE *image);
void loadmsg();
void setup();
//=====================================================================================//

enum Control_Button {	BUTA_X = 50, 
						BUTA_Y = 110,
						BUTB_X = 50,
						BUTB_Y = 510,
						RAD = 5,
						MAXLINE = 17};

typedef struct Button
{
	unsigned int trans;

	int hide;
	int xpos;
	int ypos;

	int oldx;
	int oldy;

	int flag;
	int state;
	int options;

	unsigned int alpha;
	unsigned int drawpt;

	BITMAP * B_Normal;
	BITMAP * B_Rollover;
	BITMAP * B_Hit;
	BITMAP * B_Scratch;
	char *text_option[256];
}Button;